﻿using System;
using Bricks;
using Bricks.Injecting;

namespace Motar
{
    
    /// <summary>
    /// 
    /// </summary>
    public abstract class ApplicationInitializerBase : FacadeBase<IContainerFacade>, IApplicationInitializer
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="containerFacade"></param>
        protected ApplicationInitializerBase(IContainerFacade containerFacade) :
            base(() => containerFacade)
        {
            if (containerFacade == null)
            {
                throw new ArgumentNullException("containerFacade");
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public abstract void Execute();
    }
}
